home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
extra
/
pro13
/
strnicmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-01
|
384b
|
24 lines
/*
strnicmp.C
Copyright (C) 1993, Geoff Friesen B.Sc.
All rights reserved.
*/
#define INCL_STRNICMP
#ifndef INCL_TOUPPER
#include "toupper.C"
#endif
int strnicmp (const char *s1, const char *s2, size_t maxlen)
{
if (!maxlen)
return 0;
for (; toupper (*s1) == toupper (*s2); s1++, s2++)
if (!maxlen--)
return 0;
return (*s1-*s2);
}